<template>
  <div>
    <h3>子组件{{ value }} </h3>
    <h3>子组件{{ aaa }} </h3>

    <button @click="fn">子组件按钮修改福</button>
    <button @click="fnW">子组件按钮aaa修改福</button>
    <button @click="ss">子组件按钮objsss修改福</button>

  </div>
</template>
<script>

export default {
  props: {
    value: {

      type: Object,
      required: true
      // // type: String, default: ''
    },
    aaa: {
      type: Number,
      default: 0
    }
  },
  methods: {
    fn() {
      this.$emit('input', this.value + 6)
    },
    fnW() {
      this.$emit('update:aaa', this.aaa + 100)
    },
    ss() {
      this.value.obj = 3000
    }
  }
}
</script>

